import request from '@/utils/request'

export function login(username, password) {
  console.log(2.2)
  return request({
    url: 'ns0/sys/login.do',
    method: 'post',
    data: {
      "head":{},
      "body":{userNo:username,password:password}
    }
  })
}


//获取枚举参数
export function star(id){
  return request({
      async:false,
      url: "/sys/param/getParameter.do",
      method: "post",
      data: {
        head: {},
        body: {papaId: id}
      }
    })
}

export function getInfo() {
  return request({
    url: '/sys/user/pullUserInforV0.do',
    method: 'post',
  })
}

export function logout() {
  return request({
    url: '/sys/logout.do',
    method: 'post'
  })
}


